home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / GLUT-3.7 / PROGS / advanced97 / TEXTURE.H < prev    next >
Encoding:
Text File  |  1998-08-12  |  484 b   |  17 lines

  1. /*
  2.  * read_texture() - read in an image file in SGI 'libimage' format
  3.  *     currently its very simple minded and converts all images
  4.  *      to RGBA8 regardless of the input format and returns the
  5.  *    original number of components in the appropriate parameter.
  6.  *    
  7.  *     
  8.  *    the components are converted as follows
  9.  *        L    -> LLL 1.0
  10.  *        LA   -> LLL A
  11.  *        RGB  -> RGB 1.0
  12.  *        RGBA -> RGB A
  13.  *
  14.  */
  15. unsigned *
  16. read_texture(const char *name, int *width, int *height, int *components);
  17.